package com.smarttest.dagger.di

import android.app.Application
import android.content.Context
import dagger.Binds
import dagger.Module
import dagger.Provides
import javax.inject.Named

/**
 * 说明：
 * Created by code_nil on 2018/1/30.
 * 君子自强不息
 */
@Module
abstract class AppModule {
    //expose Application as an injectable context
    @Binds
    abstract fun bindContext(application: Application): Context


    @Binds
    @Named("applicationContext")
    abstract  fun bindAppContext(application: Application): Context
}
